package com.fun.seckill.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.fun.seckill.pojo.Order;
import com.fun.seckill.pojo.User;
import com.fun.seckill.vo.GoodsVo;
import com.fun.seckill.vo.OrderDetailVo;

public interface IOrderService extends IService<Order> {

    /**
     * 秒杀
     **/
    Order secKill(User user, GoodsVo goodsVo);

    /**
     * 订单详情方法
     **/
    OrderDetailVo detail(Long orderId);

    /**
     * 获取秒杀地址
     **/
    String createPath(User user, Long goodsId);

    /**
     * 校验秒杀地址
     **/
    boolean checkPath(User user, Long goodsId, String path);

    /**
     * 校验验证码
     **/
    boolean checkCaptcha(User tuser, Long goodsId, String captcha);
}
